package ar.edu.unq.mongodbexample.model;

import java.util.List;

/**
 * Estrategia concreta que obliga determina la nota final en función de la nota del Final
 * 
 * @author Nicolas Faure
 */
public class FinalTestStrategy extends ApprovalStrategy {

    private Double finalTestMark;

    public FinalTestStrategy() {

    }

    /**
     * 
     * @param student
     * @param marks
     */
    @Override
    public Double finalMark(final Student student, final List<Double> marks) {
        return this.getFinalTestMark();
    }

    public Double getFinalTestMark() {
        return this.finalTestMark;
    }

    /**
     * 
     * @param newVal
     */
    public void setFinalTestMark(final Double newVal) {
        this.finalTestMark = newVal;
    }

}